//
//  HSYBaseWebModel.h
//  高仿暴走斗图
//
//  Created by huangsongyao on 16/3/4.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import "HSYBaseModel.h"

@interface HSYBaseWebModel : HSYBaseModel

@property (nonatomic, strong, readonly) NSURL *url;

/**
 *  链接Model
 *
 *  @param url 链接
 *
 *  @return self
 */
- (instancetype)initWithURL:(NSURL *)url;

/**
 *  设置请求的cookies
 *
 *  @param completed 设置完成回调
 */
- (void)setHTTPCookiesForCompleted:(void(^)(void))completed;

/**
 *  设置请求的cookies，调用 - setHTTPCookiesForCompleted: 方法
 *
 *  @return 设置完成的signal回调
 */
- (RACSignal *)rac_setHTTPCookies;

@end
